money = 5000000
vary = 0
name = input("输入你的名字：")

def chayue():
    global money
    print("--------查询中-------")
    print(f"{name},你当前余额{money}元")
def cunkuan():
    global money
    vary = int(input("请输入存款金额："))
    money += vary
    print("-------存入中-------")
    print("--------成功-------")
    chayue()
    menu()
def qukuan():
    global money
    vary = int(input("请输入要取金额："))
    money -= vary
    print("-------取款中-------")
    print("--------成功-------")
    chayue()
    menu()

def menu():
    print("***********1查询余额**********")
    print("***********2存款*************")
    print("***********3取款*************")
    print("***********4菜单*************")
    choose = input("请选择：")

    if choose=="1":
        chayue()
    elif choose=="2":
        cunkuan()
    elif choose=="3":
        qukuan()
    elif choose=="4":
        menu()


menu()
